package io.le.starter.lock.locker.manager;

import io.le.starter.lock.locker.AbstractLock;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * createTime：2025-04-07 16:21
 * description：锁管理
 */
public class LockManager {


    @Autowired
    public LockFactory lockFactory;

    public String lockType;


    public LockManager(String lockType) {
        this.lockType = lockType;
    }


    public AbstractLock getLock(String lockName) {
        return lockFactory.getLock(lockType, lockName);
    }

}
